//
//  OPCommentListViewController.h
//  OnePerson
//
//  Created by BaoWanPei on 16/6/11.
//  Copyright © 2016年 BWP. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MLBCommonHeaderView.h"
#import "MLBCommonFooterView.h"

typedef NS_ENUM(NSUInteger, OPCommentListType) {
    OPCommentListTypeNone,
    OPCommentListTypeReadComments,
    OPCommentListTypeMusicComments,
    OPCommentListTypeMovieStories,
    OPCommentListTypeMovieReviews,
    OPCommentListTypeMovieComments,
};

@interface OPCommentListViewController : UITableViewController

@property (nonatomic, copy) void (^finishedCalculateHeight)(CGFloat height);

- (instancetype)initWithCommentListType:(OPCommentListType)commentListType;

- (instancetype)initWithCommentListType:(OPCommentListType)commentListType headerViewType:(MLBHeaderViewType)headerViewType footerViewType:(MLBFooterViewType)footerViewType;

- (void)configureViewForReadDetailsWithReadType:(MLBReadType)readType itemId:(NSString *)itemId;

- (void)configureViewForMusicDetailsWithItemId:(NSString *)itemId;

- (void)configureViewForMovieDetailsWithItemId:(NSString *)itemId;

- (void)requestDatas;

//- (CGFloat)viewHeightWithDataSource:(NSArray *)dataSource;

@end